<?php

namespace App\Exception;

use Hyperf\Server\Exception\ServerException;

/**
 * 作者：薛原
 * 功能：业务行错误例外
 * 时间：2025/10/17
 */
class BusinessException extends ServerException
{
    public function __construct(
        string $message = '业务异常',
        int $code = 400,
        ?\Throwable $previous = null
    ) {
        parent::__construct($message, $code, $previous);
    }
}